/* 板块异动页面样式 */
.block-movement-page {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 双面板布局 */
.block-movement-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

/* 左侧板块列表面板 */
.block-list-panel {
    flex: 0 0 14%;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

/* 右侧详情面板 */
.block-detail-panel {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
}

/* 面板头部 */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebeef5;
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.panel-actions {
    display: flex;
    gap: 8px;
}

/* 搜索框样式 */
.search-input {
    margin-bottom: 15px;
}

.search-input .el-input__inner {
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    transition: border-color 0.3s ease;
}

.search-input .el-input__inner:focus {
    border-color: #409eff;
}

/* 板块表格容器 */
.block-table-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 板块表格样式 */
.block-table {
    flex: 1;
    overflow-y: auto;
}

.block-table .el-table {
    font-size: 13px;
}

.block-table .el-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.block-table .el-table td {
    padding: 8px 0;
}

/* 选中行样式 */
.block-table .selected-row {
    background-color: #ecf5ff !important;
}

.block-table .selected-row:hover {
    background-color: #dbeafe !important;
}

/* 板块名称列 */
.block-name {
    font-weight: 600;
    color: #409eff;
    cursor: pointer;
}

.block-name:hover {
    color: #66b1ff;
}

/* 欢迎面板 */
.welcome-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 统计信息容器 */
.statistics-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* 子面板样式 */
.sub-panel {
    margin-bottom: 20px;
}

.sub-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebeef5;
}

.sub-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.sub-panel-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 股票列表样式 */
.stock-list {
    overflow-y: auto;
    max-height: 200px;
}

.stock-list .el-table {
    font-size: 12px;
}

.stock-list .el-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

.stock-list .el-table td {
    padding: 6px 0;
}

/* 股票代码列 */
.stock-code {
    font-weight: 600;
    color: #409eff;
    cursor: pointer;
    font-size: 12px;
}

.stock-code:hover {
    color: #66b1ff;
}

/* 股票名称列 */
.stock-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 12px;
}

/* 详情表格样式 */
.detail-table {
    overflow-y: auto;
    max-height: 250px;
}

.detail-table .el-table {
    font-size: 12px;
}

.detail-table .el-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.detail-table .el-table td {
    padding: 6px 0;
}

/* 异动日期列表样式 */
.date-list {
    overflow-y: auto;
    max-height: 200px;
}

.date-list .el-table {
    font-size: 12px;
}

.date-list .el-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

.date-list .el-table td {
    padding: 6px 0;
}

/* 日期列 */
.date-cell {
    font-weight: 500;
    color: #606266;
    font-size: 12px;
}

/* 原因列 */
.reason-cell {
    color: #606266;
    font-size: 11px;
    max-width: 150px;
    word-wrap: break-word;
    line-height: 1.4;
}

/* 分页样式 */
.pagination-wrapper {
    padding: 15px 0;
    border-top: 1px solid #ebeef5;
    display: flex;
    justify-content: center;
}

/* 热门股票标签 */
.hot-stocks {
    margin-top: 8px;
}

.hot-stock-tag {
    margin: 2px 4px 2px 0;
    font-size: 11px;
}

/* Tab页样式 */
.tab-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #ebeef5;
    margin-bottom: 20px;
}

.tab-item {
    padding: 12px 20px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 14px;
    color: #606266;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-item:hover {
    color: #409eff;
}

.tab-item.active {
    color: #409eff;
    border-bottom-color: #409eff;
    font-weight: 600;
}

.tab-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tab-pane {
    flex: 1;
    display: none;
    flex-direction: column;
}

.tab-pane.active {
    display: flex;
}

/* 垂直布局 */
.pane-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.pane-section {
    display: flex;
    flex-direction: column;
}

.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ebeef5;
}

.pane-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .block-movement-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    .block-list-panel,
    .block-detail-panel {
        flex: none;
        max-height: none;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .panel-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .block-table .el-table,
    .stock-list .el-table,
    .detail-table .el-table,
    .date-list .el-table {
        font-size: 11px;
    }
    
    .sub-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .pane-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .tab-header {
        flex-wrap: wrap;
    }
    
    .tab-item {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* 加载遮罩 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
}

/* 表格行悬停效果 */
.block-table .el-table tbody tr:hover > td,
.stock-list .el-table tbody tr:hover > td,
.detail-table .el-table tbody tr:hover > td,
.date-list .el-table tbody tr:hover > td {
    background-color: #f5f7fa !important;
}

/* 操作按钮样式 */
.el-button--text {
    padding: 0;
    font-size: 11px;
    color: #409eff;
}

.el-button--text:hover {
    color: #66b1ff;
}

/* 双击行高亮效果 */
.el-table tbody tr.double-clicked > td {
    background-color: #e1f3d8 !important;
    border-bottom: 2px solid #67c23a;
}

/* 详情面板动画效果 */
.pane-section {
    transition: all 0.3s ease;
}

.pane-section.v-enter-active,
.pane-section.v-leave-active {
    transition: all 0.3s ease;
}

.pane-section.v-enter-from,
.pane-section.v-leave-to {
    opacity: 0;
    transform: translateY(-10px);
}

/* 表格行可点击提示 */
.stock-list .el-table tbody tr,
.date-list .el-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.stock-list .el-table tbody tr:hover,
.date-list .el-table tbody tr:hover {
    background-color: #f0f9ff !important;
}

/* 详情区域强调样式 */
.detail-table .el-table thead th {
    background-color: #f0f9ff !important;
    color: #1d4ed8;
    border-bottom: 2px solid #3b82f6;
}

/* 加载状态样式 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
}

/* 双击反馈动画 */
@keyframes doubleClickHighlight {
    0% { background-color: #f0f9ff; }
    50% { background-color: #dbeafe; }
    100% { background-color: #bfdbfe; }
}

.el-table tbody tr.double-click-animation {
    animation: doubleClickHighlight 0.6s ease-in-out;
    border-bottom: 2px solid #3b82f6;
}

/* 详情面板展开动画 */
.detail-panel-expand {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

/* 改进的空状态提示 */
.empty-detail-tip {
    padding: 20px;
    text-align: center;
    color: #909399;
    font-size: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px dashed #dcdfe6;
    margin: 10px 0;
}

.empty-detail-tip i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    color: #c0c4cc;
}

/* 垂直布局优化 */
.pane-section {
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #ebeef5;
}

.pane-section:last-child {
    margin-bottom: 0;
}

/* 详情面板特殊样式 */
.pane-section.detail-panel-expand {
    border: 2px solid #e1f3d8;
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f5e8 100%);
}

/* 表格容器优化 */
.stock-list, .date-list, .detail-table {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ebeef5;
}

/* 头部信息标签优化 */
.pane-header .el-tag {
    font-weight: 500;
    background: #f0f9ff;
    border-color: #b3d8ff;
    color: #409eff;
}